import { commonRequest } from '@/api/commonHttp';

// 商品中心 - SKU准入管理 - 待准入SKU-待完善 - 售价维护 - 获取初始化数据
export const getInitDataForAddSkuService = (data, loadingFn) => commonRequest({
  url: '/sysback/salePrice/secondPhase/prepare/getInitDataForAddSku',
  type: 'get',
  data,
  loadingFn
})

// 商品中心 - SKU准入管理 - 待准入SKU-待完善 - 售价维护 - 新增sku保存
export const saveForAddSkuService = (data, loadingFn) => commonRequest({
  url: '/sysback/salePrice/secondPhase/prepare/saveForAddSku',
  type: 'post',
  data,
  loadingFn
})

// 商品中心 - 新增sku查询单据
export const searchRecordForAddSkuService = (data, loadingFn) => commonRequest({
  url: '/sysback/salePrice/secondPhase/prepare/searchRecordForAddSku',
  type: 'get',
  data,
  loadingFn
})
